<!-- sua bai viet-->
<?php echo validation_errors(); ?>
<form method="POST" action="<?php echo base_url().'admin/xuly/video/list/'.$this->uri->segment(5);?>">
   <div class="box_heading">
      <div class="icon">
         <img src="<?php echo base_url().'skin/admin/images/icon_settings.png';?>"/> Sửa Video( <span style="color: red;"> * : không được để trống</span> )  <?php if(!empty($thongbao)){echo '<img src='.base_url().'skin/admin/images/ok.png class="ok"><font color=red><b>'.$thongbao.'</b></font>';}?>
      </div>
      <div class="right">    
         <a href="<?php echo base_url().'admin/xuly/video/list';?>">Hủy</a>
      </div>
   </div>
   <div class="box_noidung">
      <table class="form">
         <tr>
            <td><font color=red>* </font>Tiêu đề</td>
            <td><input type="text" size="80" value="<?php if(!empty($data)){echo $data->name;};?>" name="name"/></td>
         </tr>
         <tr>
            <td><font color=red>* </font>Tiêu đề tiếng anh</td>
            <td><input type="text" size="80" value="<?php if(!empty($data)){echo $data->name_en;};?>" name="name_en"/></td>
         </tr>
         <tr>
            <td><font color=red>* </font>Trạng thái</td>
            <td>
               <select name="publish">
                  <option <?php if(!empty($data)){if($data->publish=='1')echo 'selected="selected"';} ?> value='1'>Hiện</option>
                  ';
                  <option <?php if(!empty($data)){if($data->publish=='0')echo 'selected="selected"';} ?> value='0'>Ẩn</option>
                  ';                                              
               </select>
            </td>
         </tr>
         <tr>
            <td><font color=red>* </font>Sever</td>
            <td>
                <select name="videos_type">
                    <option value="1"> -- Youtube -- </option>
                    <option value="2"> -- Clip.vn -- </option>
                    <option value="3"> -- Vimeo -- </option>
                </select>
            </td>
         </tr>
         <tr>
            <td><font color=red>* </font>Liên kết</td>
            <td><input type="text" size="80" value="<?php if(!empty($data)){echo $data->link;}else echo '';?>" name="link"/></td>
         </tr>
         <tr><td><font color=red>* </font>Ảnh đại diện</td><td>
                <input type="text" id="xFilePath" name="videos_image"  size="53" class="medium" value="<?php if(!empty($data)){echo $data->videos_image;} ?>" />
                <input type="button" value="Tải ảnh lên" onclick="BrowseServer();" style="background-color: #E5E3E3;background-image: url('../../resources/images/button.png')" />
            </td></tr>
         <tr>
            <td style="text-align: center;" colspan="2"><input class="guidulieu" type="submit" value="Lưu"/></td>
         </tr>
      </table>
   </div>
</form>
<script type="text/javascript">
   if ( typeof CKEDITOR == 'undefined' )
    {
    	document.write("khong "
    		 ) ;
    }
    else
    {
    	var editor = CKEDITOR.replace( 'soanthao' );            
        CKFinder.setupCKEditor( editor, '<?php echo base_url();?>ckeditor/ckfinder/' ) ;            	
    }
</script>
<!--end sua bai viet-->
